import request from "./httpload.js";

export function deleteSubuser(sub_id) {
  console.log(sub_id, "sub_id");
  return request.delete("/sub", { sub_id: sub_id });
}

export function createSubuser(data) {
  return request.post("/sub", data);
}

export function getSubuser(data = { limit: 10, page: 1 }) {
  return request.get("/sub", { params: data });
}
